﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WordsReminder
{
    public partial class SettingsForm : Form
    {
        public int OpacitySetting
        {
            get
            {
                return opacityTrackBar.Value;
            }
        }

        public int TimerPeriodSetting
        {
            get
            {
                return (int)nudTimerPeriod.Value;
            }
        }

        public bool OKButtonClicked { get; private set; }

        public SettingsForm(int opacity, int timerPeriod)
        {
            InitializeComponent();
            opacityTrackBar.Value = opacity;
            nudTimerPeriod.Value = timerPeriod;
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            OKButtonClicked = true;
            this.DialogResult = DialogResult.OK;
        }
    }
}
